package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @PROJECT_NAME: cloud2020
 * @DESCRIPTION:
 * @Author: csc
 * @DATE: 2023/3/28 14:16
 */
@RestController
public class SendMessageController {

   @Resource
   private IMessageProvider messageProvider;

   @GetMapping("/sendMessage")
   public String sendMessage(){
        return  messageProvider.send();
   }//end

}
